<?php
			header('Content-type:text/html;charset=utf-8');
			$connect=mysql_connect("localhost","root","");
				if($connect)
				{
					echo "成功";
				}else
				{
					echo "shibai";
				}
	
			$sql="create database netCatch ";
			
			if(mysql_query($sql,$connect))
			{
				echo "DBchenggong";
			}
			else
			{
				die(mysql_error());
			}
		mysql_select_db("netCatch",$connect)or die("无法连接数据库netCatch");
			$sql="create table netCatch_table(
			id integer not null auto_increment, primary key(id)
			)"; 
		if(mysql_query($sql))
		{
			echo  '表创建成功';
		}
			else
		{
		 die('创建表失败'.mysql_error());
		 }
		 
		 $sql='insert into netCatch_table(id)values(1);';
		 if(mysql_query($sql))
		{
			echo  '插入成功！';
			
		}
			else
		{
		 die('插入失败！'.mysql_error());
		 }
		 
		 
			
?>
				